<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%
    String basePath = request.getScheme() + "://" + request.getServerName()
            + ":" + request.getServerPort() + request.getContextPath();
%>
<jsp:include page="/WEB-INF/page/auth/_header.jsp"></jsp:include>
<body>
<jsp:include page="/WEB-INF/page/auth/header.jsp"></jsp:include>
<div id="middle">
    <jsp:include page="/WEB-INF/page/auth/menu.jsp"></jsp:include>
    <div id="right">
        <table id="term_infodg">
            <thead>
            <tr>
                <th data-options="field:'id',checkbox:true">ID</th>
                <th data-options="field:'termName',width:25,title:'学期名称',editor:{
		                    type:'textbox',
		                    options:{
		                        required:true
		                    }
		                },formatter:function(value,row,index) {
		                	return row.termName;
		                }"></th>
                <th data-options="field:'startDate',width:25,title:'开始时间',
			                editor:{
			                    type:'datebox',
			                }"></th>
                <th data-options="field:'endDate',width:25,title:'结束时间',
			                editor:{
			                    type:'datebox',
			                }"></th>
            </tr>
            </thead>
        </table>
    </div>
</div>
<jsp:include page="/WEB-INF/page/auth/_footer.jsp"/>
<script type="text/javascript">
    $(function () {
        var url = basePath + "/sys/term";
        initDatagridAdmin("term_info", url, 1, 1, 1, 1, 0);
    })
</script>
</body>
</html>